|
2000W / 48V LLC Battery-Charger
V1.00
|
#include <xmc_rtc.h>
Public Attributes | |
| union { | |
| uint32_t raw0 | |
| struct { | |
| uint32_t seconds: 6 | |
| uint32_t __pad0__: 2 | |
| uint32_t minutes: 6 | |
| uint32_t __pad1__: 2 | |
| uint32_t hours: 5 | |
| uint32_t __pad2__: 3 | |
| uint32_t days: 5 | |
| uint32_t __pad3__: 3 | |
| } | |
| }; | |
| union { | |
| uint32_t raw1 | |
| struct { | |
| uint32_t daysofweek: 3 | |
| uint32_t __pad0__: 5 | |
| uint32_t month: 4 | |
| uint32_t __pad1__: 4 | |
| uint32_t year: 16 | |
| } | |
| }; | |
Time values of RTC
The structure presents a convenient way to set/obtain the time values for seconds, minutes, hours, days, month and year of RTC. The XMC_RTC_SetTime() and XMC_RTC_GetTime() can be used to populate the structure with the time value of RTC
| union { ... } |
| union { ... } |
| uint32_t XMC_RTC_TIME::days |
Days time value (0-Actual days of month: Above this causes this bitfield to be set with 0)
Definition at line 228 of file xmc_rtc.h.
Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().
| uint32_t XMC_RTC_TIME::daysofweek |
Days of week time value (0-6: Above this causes this bitfield to be set with 0)
Definition at line 238 of file xmc_rtc.h.
Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().
| uint32_t XMC_RTC_TIME::hours |
Hours time value (0-23: Above this causes this bitfield to be set with 0)
Definition at line 226 of file xmc_rtc.h.
Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().
| uint32_t XMC_RTC_TIME::minutes |
Minutes time value (0-59: Above this causes this bitfield to be set with 0)
Definition at line 224 of file xmc_rtc.h.
Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().
| uint32_t XMC_RTC_TIME::month |
Month time value (0-11: Above this causes this bitfield to be set with 0)
Definition at line 240 of file xmc_rtc.h.
Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().
| uint32_t XMC_RTC_TIME::raw0 |
Definition at line 219 of file xmc_rtc.h.
Referenced by XMC_RTC_GetTime(), XMC_RTC_GetTimeStdFormat(), XMC_RTC_Init(), and XMC_RTC_SetTime().
| uint32_t XMC_RTC_TIME::raw1 |
Definition at line 235 of file xmc_rtc.h.
Referenced by XMC_RTC_GetTime(), XMC_RTC_GetTimeStdFormat(), XMC_RTC_Init(), and XMC_RTC_SetTime().
| uint32_t XMC_RTC_TIME::seconds |
Seconds time value (0-59: Above this causes this bitfield to be set with 0)
Definition at line 222 of file xmc_rtc.h.
Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().
| uint32_t XMC_RTC_TIME::year |
Year time value
Definition at line 242 of file xmc_rtc.h.
Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().